/*
 * Copyright (C) 2015-2019 Alibaba Group Holding Limited
 */

#ifndef __HAL_CAN__H
#define __HAL_CAN__H

#ifdef __cplusplus
 extern "C" {
#endif
#include "aos/hal/can.h"
#include "aos/kernel.h"
#include "soc_init.h"

#define MAX_CAN_NUMBER 2
#define MAX_FILTER_CNT 16

#define INVALID_CAN_ID 0xFFFFFFFF

#define CAN_FILTER_GRP_PROP 0x80

/* Mapping Table is defined in director 'board' */
extern can_mapping_t can_mapping_table[PORT_CAN_SIZE];


#ifdef __cplusplus
}
#endif

#endif /* __HAL_CAN__H */
